<template>
  <div class="error-page">
    <div class="error-container">
      <div class="error-content">
        <h1>403</h1>
        <p class="error-message">无权限访问</p>
        <p class="error-description">您没有权限访问该页面，请联系管理员。</p>
        <router-link to="/" class="back-home">返回首页</router-link>
      </div>
    </div>
  </div>
</template>

<style scoped>
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 20px;
}

.error-container {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
}

.error-content h1 {
  font-size: 72px;
  font-weight: 700;
  color: #409eff;
  margin: 0;
  line-height: 1;
}

.error-message {
  font-size: 24px;
  color: #303133;
  margin: 20px 0 10px;
}

.error-description {
  font-size: 16px;
  color: #606266;
  margin-bottom: 30px;
  line-height: 1.6;
}

.back-home {
  display: inline-block;
  padding: 12px 30px;
  background-color: #409eff;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s;
  border: 1px solid #409eff;
}

.back-home:hover {
  background-color: #66b1ff;
  color: white;
}

@media (max-width: 768px) {
  .error-container {
    padding: 30px 20px;
  }

  .error-content h1 {
    font-size: 60px;
  }

  .error-message {
    font-size: 20px;
  }

  .error-description {
    font-size: 14px;
  }

  .back-home {
    padding: 10px 25px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .error-page {
    padding: 10px;
  }

  .error-container {
    padding: 20px 15px;
  }

  .error-content h1 {
    font-size: 48px;
  }

  .error-message {
    font-size: 18px;
    margin: 15px 0 10px;
  }

  .error-description {
    font-size: 13px;
    margin-bottom: 25px;
  }

  .back-home {
    padding: 8px 20px;
    font-size: 13px;
  }
}
</style>
